package com.atguigu.eduservice.service.feign;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
// 添加熔断机制
@FeignClient(value = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {
    @DeleteMapping("/eduVod/video/removeVideo/{id}")
    // 远程调用删除阿里云视频点播
    public R removeVideo(@PathVariable("id") String id);
    // 远程调用删除课程下面所有章节视频
    @DeleteMapping("/eduVod/video/delete-batch")
    public R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
